
from PySide2.QtGui import QKeySequence
from PySide2.QtCore import Qt

from .menu import Menu, MenuEntry, MenuSeparator


class AnalyzeMenu(Menu):
    def __init__(self, main_window):
        super().__init__("&Analyze", parent=main_window)

        self.entries.extend([
            MenuEntry('&Decompile', main_window.decompile_current_function, shortcut=QKeySequence(Qt.Key_F5)),
        ])
